import pandas
import yaml


def read_data_from_yaml(file_path):
    with open(file_path,"r",encoding="utf-8") as file:
        res = yaml.load(file, Loader=yaml.FullLoader)
        return res


def read_txt():
    filelist = []
    with open("data/a.txt", "r", encoding="utf-8") as file:
        for i in file:
            i.replace("\n","")
            print(i)
            filelist.append(i)



def read_xlsx():
    data = pandas.read_excel("data/v1.xlsx",sheet_name="1")
    data_xlsx = data.values.tolist()
    return data_xlsx


def read_csv():
    data = pandas.read_csv("data/v2.csv",encoding="utf")
    data_csv = data.values.tolist()
    return data_csv
